
lst = [28, 89, 98, 65, 78, 66, 29, 4, 92]
# 从小到大进行排序
def select_sort(lst):
    for i in range(len(lst)):
        m = i
        for j in range(i+1, len(lst)):
            if lst[m] > lst[j]:
                m = j
        lst[m], lst[i] = lst[i], lst[m]
    return lst


print(select_sort(lst))



